package 杂Test;
import java.util.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-09-22
 * Time: 17:29
 */
public class demo3 {

    public static int process(int i,int j,int n,int m){
        if(i<0||i>=n||j<0||j>=m){
            return 0 ;
        }
        if(i==n&&j==m){
            return 1;
        }
        int ways = 0;
        ways += process(i,j+1,n,m);
        ways += process(i+1,j,n,m);
        return ways;
    }

    public static void main(String[] args){

        //输入n,m
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int m = scan.nextInt();
        int ret =  process(0,0,n,m);
        System.out.println(ret);
    }
}
